<?php
/**
 * Formulaire d'envoie de news
 * @author Etienne AUDOUIN <etienne.audouin@ingesup.com>
 * @author Adrien MARIANELLI <adrien.marianelli@ingesup.com>
 * @version 1.0
 * @package view_news_send
 */
$newslettersAttributes = array();
foreach ($newsletters as $newsletter ){
    $newslettersAttributes[$newsletter->id] = $newsletter->content;
}

echo form_open();
echo form_fieldset('Choose a newsletter');
echo '<table id="table_newsletter">';
echo '<tr>';
echo '<th>Choose : </th>';
echo '<td>' . form_dropdown('select_newsletter', $newslettersAttributes) . '</td>';
echo '</tr>';
echo '</table>';
echo form_submit(null, 'Send');
echo form_fieldset_close();
echo form_close();
?>
